<h2>Browse Books Page</h2>

<?php $books = $this->getAllBooks()?>


<?php if (count($books) == 0):?>
    <div>
        No books found.
    </div>
    <?php return;?>
<?php endif;?>

<ul class="list-simple">
    <?php foreach ($books as $book):?>
    <li>
        <div><?php echo $book->getData('title')?></div>
        <div><?php echo $book->getData('price')?></div>
        <div><?php echo $book->getData('description')?></div>
        <div><?php echo $book->getData('author')?></div>
    </li>
        
    <?php endforeach;?>
</ul>